#include "AbstractChromosomeFactory.h"
#include "parameters.h"
#include "Chromosome.h"

AbstractChromosomeFactory::AbstractChromosomeFactory(int _chromLen) :
        chromosomeLength(_chromLen)
{
    TRACE_FUNC
}

Chromosome* AbstractChromosomeFactory::getNewChromosome()
{
    TRACE_FUNC
    return getNewChromosome(chromosomeLength);
}

Chromosome* AbstractChromosomeFactory::getNewRandomChromosome()
{
    TRACE_FUNC
    Chromosome* randomChromosome = getNewChromosome();
    randomChromosome->setRandom();
    return randomChromosome;
}
